{mtpl 'header'}

  <dl class="shop">
    <dt>{$shopname}{m_subname($subname)} {m_discount($discount)}</dt>
    {if $thumb}<dd><img src="{SITE_URL}{$thumb}" width="90" height="90" /></dd>{/if}
{php $chuyi = $reviews ? $reviews : 1;$renjun = ceil($avgprice/$chuyi);}

{loop $sorts $key $val}
    {php $starnum = ceil($data[$key]/$chuyi);$starnum = $starnum ? $starnum : 3;$starnum = ($starnum>=5) ? 5 : $starnum;}
    <dd><div class="startTxt">{$val}：</div><div class="start{$starnum}"></div></dd>
{/loop}

    <dd><strong>人均：</strong>{$renjun}</dd>
    <dd><strong>电话：</strong>{$tel1} [<a href='wtai://wp/mc;{$telcall}'>拨打</a>]</dd>
    <dd><strong>地址：</strong>{$address}[<a href="?file=shopmap&id={$id}{$cityparam}" class="map">查看地图</a>]</dd>
    <dd><strong>简介：</strong>{$content}</dd>
    <dd class="wordTxt"><a href="?file=review&shopid={$id}&action=list{$cityparam}">查看点评({$reviews})</a></dd>
    
    <!--<dd><a href="addWord.html"><img src="images/wordbtn.gif" width="55" height="19" /></a></dd> -->
    
  </dl>


{if $_SESSION["username"]}
  <dl class="shop">
    <dt>发布点评</dt>
<form action="?file=review&shopid={$id}{$cityparam}" method="POST">
{loop $sorts $key $val}
<dd>{$val}:
<select value="3" name="{$key}">	
    <option value="1">差(0)</option>
    <option value="2">一般(1)</option>
	<option value="3">好(3)</option>
	<option value="4">很好(4)</option>
	<option value="5">非常好(5)</option>
</select>
</dd>
{/loop}
<dd>评价：<br /><textarea name="content" cols="22" rows="3"></textarea></dd>
<dd>以下为选填:<br />
人均:￥<input name="avgprice" value="" emptyok="true" size="4"/></dd>
<dd>喜爱程度:
    <select value="1" name="enjoy">	
    <option value="0">不喜欢</option>	
    <option value="1">无所谓</option>	
    <option value="2">喜欢</option>	
    <option value="3">很喜欢</option>
    </select>
</dd>
<dd><input type="submit" name="dosubmit" value="提交" /></dd>
</form>
  </dl>
{else}

  <dl class="shop">发布点评请先<a href="?file=login&forward={urlencode(URL)}">登录</a></dl>

{/if}
  
{mtpl 'footer'}